.class Lcom/estrongs/android/pop/zeroconf/h$a;
.super Ljava/lang/Thread;
.source "ZeroconfManager.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/pop/zeroconf/h;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "a"
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/pop/zeroconf/h;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/zeroconf/h;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/zeroconf/h$a;->a:Lcom/estrongs/android/pop/zeroconf/h;

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 4

    const/16 v0, 0x230c

    :try_start_0
    new-array v1, v0, [B

    .line 1
    new-instance v2, Ljava/net/DatagramPacket;

    invoke-direct {v2, v1, v0}, Ljava/net/DatagramPacket;-><init>([BI)V

    .line 2
    :cond_0
    :goto_0
    iget-object v1, p0, Lcom/estrongs/android/pop/zeroconf/h$a;->a:Lcom/estrongs/android/pop/zeroconf/h;

    invoke-static {v1}, Lcom/estrongs/android/pop/zeroconf/h;->a(Lcom/estrongs/android/pop/zeroconf/h;)Lcom/estrongs/android/pop/zeroconf/h$a;

    move-result-object v1

    if-eqz v1, :cond_4

    .line 3
    invoke-virtual {v2, v0}, Ljava/net/DatagramPacket;->setLength(I)V

    .line 4
    iget-object v1, p0, Lcom/estrongs/android/pop/zeroconf/h$a;->a:Lcom/estrongs/android/pop/zeroconf/h;

    invoke-static {v1}, Lcom/estrongs/android/pop/zeroconf/h;->b(Lcom/estrongs/android/pop/zeroconf/h;)Ljava/net/MulticastSocket;

    move-result-object v1

    invoke-virtual {v1, v2}, Ljava/net/MulticastSocket;->receive(Ljava/net/DatagramPacket;)V

    .line 5
    iget-object v1, p0, Lcom/estrongs/android/pop/zeroconf/h$a;->a:Lcom/estrongs/android/pop/zeroconf/h;

    invoke-static {v1}, Lcom/estrongs/android/pop/zeroconf/h;->a(Lcom/estrongs/android/pop/zeroconf/h;)Lcom/estrongs/android/pop/zeroconf/h$a;

    move-result-object v1
    :try_end_0
    .catch Ljava/net/SocketException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    if-nez v1, :cond_1

    goto :goto_1

    .line 6
    :cond_1
    :try_start_1
    iget-object v1, p0, Lcom/estrongs/android/pop/zeroconf/h$a;->a:Lcom/estrongs/android/pop/zeroconf/h;

    invoke-virtual {v1, v2}, Lcom/estrongs/android/pop/zeroconf/h;->a(Ljava/net/DatagramPacket;)Z

    move-result v1

    if-eqz v1, :cond_2

    goto :goto_0

    .line 7
    :cond_2
    new-instance v1, Lcom/estrongs/android/pop/zeroconf/a;

    invoke-direct {v1, v2}, Lcom/estrongs/android/pop/zeroconf/a;-><init>(Ljava/net/DatagramPacket;)V

    .line 8
    invoke-virtual {v1}, Lcom/estrongs/android/pop/zeroconf/b;->o()Z

    move-result v3

    if-eqz v3, :cond_3

    .line 9
    iget-object v3, p0, Lcom/estrongs/android/pop/zeroconf/h$a;->a:Lcom/estrongs/android/pop/zeroconf/h;

    invoke-static {v3, v1}, Lcom/estrongs/android/pop/zeroconf/h;->a(Lcom/estrongs/android/pop/zeroconf/h;Lcom/estrongs/android/pop/zeroconf/b;)V

    goto :goto_0

    .line 10
    :cond_3
    invoke-virtual {v1}, Lcom/estrongs/android/pop/zeroconf/b;->n()Z

    move-result v3

    if-eqz v3, :cond_0

    .line 11
    iget-object v3, p0, Lcom/estrongs/android/pop/zeroconf/h$a;->a:Lcom/estrongs/android/pop/zeroconf/h;

    invoke-static {v3, v1}, Lcom/estrongs/android/pop/zeroconf/h;->b(Lcom/estrongs/android/pop/zeroconf/h;Lcom/estrongs/android/pop/zeroconf/b;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v1

    .line 12
    :try_start_2
    invoke-virtual {v1}, Ljava/lang/Throwable;->printStackTrace()V
    :try_end_2
    .catch Ljava/net/SocketException; {:try_start_2 .. :try_end_2} :catch_0
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    goto :goto_0

    :catchall_1
    move-exception v0

    .line 13
    invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V

    :catch_0
    :cond_4
    :goto_1
    return-void
.end method
